/*
* $Id: SyncChooseComPort.h 340 2011-10-20 08:08:01Z volok-aleksej@yandex.ru $
*
* Copyright 2009-2011 by Volokitin Aleksey
* All rights reserved
*
*/
#ifndef _SYNC_CHOOSE_COM_PORT_H_
#define _SYNC_CHOOSE_COM_PORT_H_

#include "WizardStep.h"

class CSyncChooseComPort : public CWizardWarningStep
{
	CFont *m_fontHeader;
	CFont *m_font;
	CComboBox* m_pComboPort;
	CWizardStep* m_pNext;
	std::tstring m_strComPort;
	int m_curSel;
public:
	CSyncChooseComPort(CWizardStep* pBack, CWnd* pParentWnd);
	~CSyncChooseComPort();
public:
	std::tstring GetComPort();
public:
	virtual CWizardStep* Next();
	virtual CWizardStep* Back();
protected:
	DECLARE_MESSAGE_HANDLER();
	bool OnComboPortChange(long param);
protected:
	virtual void InitMain(CPoint offset);
	virtual void InitWarning(CPoint offset);
	virtual void Update();
private:
	void FillComPorts();
	void UpdateComPorts();
};

#endif/*_SYNC_CHOOSE_COM_PORT_H_*/